package com.xu.crawler;

import com.xu.crawler.util.SpringUtils;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.SpringBootConfiguration;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ApplicationContext;
import org.springframework.scheduling.annotation.EnableScheduling;

@SpringBootApplication
@EnableScheduling
@EnableAutoConfiguration
public class SpiderApplication {

    public static void main(String[] args) {
        ApplicationContext app = SpringApplication.run(SpiderApplication.class, args);
        SpringUtils.setApplicationContext(app);
    }

}
